package com.workman.model.exception;

/**
 * @description:
 * @author: gaochao
 * @time: 2021/03/23 11:41
 */
public class ApplicationException extends RuntimeException{

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
    public ApplicationException(ApplicationExceptionEnum applicationExceptionEnum) {
        this.code = applicationExceptionEnum.getCode();
        this.message = applicationExceptionEnum.getMessage();
    }
}
